package datasource

Import Path
	github.com/K-Phoen/grabana/variable/datasource (on go.dev)

Dependency Relation
	imports one package, and imported by one package

Involved Source Files datasource.go
Package-Level Type Names (total 2)
/* sort by: | */
Datasource represents a "datasource" templated variable. Builder sdk.TemplateVar func New(name string, options ...Option) *Datasource
Option represents an option that can be used to configure a query. func Hide() Option func HideLabel() Option func IncludeAll() Option func Label(label string) Option func Multiple() Option func Regex(regex string) Option func Type(datasourceType string) Option func New(name string, options ...Option) *Datasource func github.com/K-Phoen/grabana/dashboard.VariableAsDatasource(name string, options ...Option) dashboard.Option
Package-Level Functions (total 8)
Hide ensures that the variable will not be displayed.
HideLabel ensures that this variable's label will not be displayed.
IncludeAll adds an option to allow all values to be selected.
Label sets the label of the variable.
Multiple allows several values to be selected.
New creates a new "query" templated variable.
Regex defines a filter allowing to filter the values returned by the request/query.
Type defines the datasource type. Example: "grafana", "stackdriver", "prometheus", ...